﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace LightWadf.Util
{
    public class LogUtil
    {
        private static string Path = AppDomain.CurrentDomain.BaseDirectory + "LightWadfLog.txt";

        public static void WriteLog(string log)
        {
            using (StreamWriter writer = new StreamWriter(Path, true))
            {
                writer.Write(DateTime.Now.ToString() + ":" + DateTime.Now.Millisecond + " " + log);
            }
        }

        public static void WritelnLog(string log)
        {
            using (StreamWriter writer = new StreamWriter(Path, true))
            {
                writer.WriteLine(DateTime.Now.ToString() + ":" + DateTime.Now.Millisecond + " " + log);
            }
        }
    }
}